package com.djs.redis;

/**
 * Jedis配置参数类
 * @author dengjingsi
 */
public class JedisConfig {
    private String host = "host";
    private int port = 6379;
    private int timeout = 2;
    private String password;

    /**
     * 创建默认Jedis配置参数类
     */
    public JedisConfig() {
    }

    /**
     * 创建指定Jedis配置参数类
     * @param host
     * @param port
     * @param timeout
     * @param password
     */
    public JedisConfig(String host, int port, int timeout, String password) {
        this.host = host;
        this.port = port;
        this.timeout = timeout;
        this.password = password;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public int getTimeout() {
        return timeout;
    }

    public void setTimeout(int timeout) {
        this.timeout = timeout;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
